package ace.module.oauth2.server.core.impl.authentication.ace;

import ace.cmp.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author caspar
 * @date 2023/2/8 13:43 密码模式 token
 */
@AllArgsConstructor
public enum Oauth2AceAuthenticationErrorEnum implements BaseEnum<String> {
  NOT_FOUND("401", "账号或密码错误"),
  ACCOUNT_DISABLED("402", "账号已停用"),
  ACCOUNT_LOCKED("403", "账号已锁定"),
  ACCOUNT_EXPIRED("404", "账号已过期"),
  CREDENTIALS_EXPIRED("405", "账号已过期"),
  ;
  @Getter private final String code;
  @Getter private final String desc;
}
